<?phpnamespace app\admin\controller\finance;use service\JsonService;use app\common\model as M;/** * 用户管理控制器 * Class User * @package app\admin\controller\user */class CouponRules extends \app\admin\controller\AuthController{    use \traits\ShotcutControllerTrait;    public $model = '\app\common\model\CouponRules';    public function _save($data)    {        if ( isset($data['rcfg']) && is_array($data['rcfg']) ) {            $data['rcfg'] = json_encode($data['rcfg'] , true);        }        return $data;    }} //Class End